import { http } from "@/utils/http";
import type { AxiosResultDefault, TableItem, TableType } from "../type";

// 平台概览-看板-设备统计 （所有课 通用接口）
export const queryDeviceStatistics = (data: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/common/deviceStat`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 平台概览 （气化课）（已废弃）
export const queryPlatformOverview = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/gas/platformOverview`, { data }, { headers: { noLoading: true } }, cb);

// 查询流量计明细 （气化课 综合看板）
export const queryGasBoardBulkGasPoints = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bulkGas/queryFlowmeter`, { data }, { headers: { noLoading: true } }, cb);

// 查询时序库中的Scada指标数据 （气化课 综合看板）
export const queryGasBoardBulkGasPointsData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<TableType>>("post", `/data/api/v1/dataQuery/queryScadaIndicator`, { data }, { headers: { noLoading: true } }, cb);

// 值班管理|工作排班查询日视图 （气化课 综合看板）
export const queryGasBoardShiftData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<any>>("post", `/operation/api/v1/schedule/dayView/query`, { data }, { headers: { noLoading: true } }, cb);

// 更新气瓶 批量上传MSDS （气化课 气瓶台账 气瓶信息）
export const batchUpdateMSDSFiles = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<TableType>>(
    "post",
    `/operation/api/v1/gas/gasMaterialMapping/batchUpdateFiles`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 平台概览/侦测器状态统计 （气化课）
export const queryDetectorStatusStat = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>("post", `/operation/api/v1/gas/detectorStatusStat`, { data }, { headers: { noLoading: true } }, cb);

// 平台概览/侦测器隔离任务统计 （气化课）
export const queryDetectorIsolationTasks = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>(
    "post",
    `/operation/api/v1/gas/detectorIsolationTasks`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 平台概览/酸桶更换任务统计 （气化课）
export const queryAcidBucketTaskStat = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>("post", `/operation/api/v1/gas/acidBucketTaskStat`, { data }, { headers: { noLoading: true } }, cb);

// 平台概览/气瓶状态统计 （气化课）
export const queryGasCylinderStatusStat = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>("post", `/operation/api/v1/gas/gasCylinderStatusStat`, { data }, { headers: { noLoading: true } }, cb);

// 平台概览/气瓶更换任务统计 （气化课）
export const queryGasCylinderTaskStat = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>("post", `/operation/api/v1/gas/gasCylinderTaskStat`, { data }, { headers: { noLoading: true } }, cb);

// 平台概览/槽车充装任务统计 （气化课）
export const queryTankTaskStat = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>("post", `/operation/api/v1/gas/tankTaskStat`, { data }, { headers: { noLoading: true } }, cb);

// 平台概览/酸桶状态统计 （气化课）
export const queryAcidBucketStatusStat = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>("post", `/operation/api/v1/gas/acidBucketStatusStat`, { data }, { headers: { noLoading: true } }, cb);

// 平台概览/SPC超出统计(近24小时)(质量指标) （气化课）
export const querySpcExceedStat = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>("post", `/operation/api/v1/gas/spcExceedStat`, { data }, { headers: { noLoading: true } }, cb);

// 查询更换工单列表 （气化课）
export const queryGasOrderList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/cylinderTask/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 气瓶更换报表 （气化课）
export const queryGasOrderReportList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/cylinderTask/taskItem/result`, { data }, { headers: { noLoading: true } }, cb);

// 删除草稿任务 （气化课）
export const delGasDraftOrder = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/cylinderReplaceTask/delete`, { data }, { headers: { noLoading: true } }, cb);

// 根据realname获取用户列表接口 （气化课）
export const getExecutorList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/account/api/v1/user/queryByRealName`, { data }, { headers: { noLoading: false } }, cb);

// 根据条件查询设备列表 （气化课）
export const queryGasDeviceCode = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/digitaltwins/api/v1/publish/equipment/queryEqpLists`, { data }, { headers: { noLoading: true } }, cb);

// 查询设备 （气化课）
export const queryGasDeviceInfo = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/digitaltwins/api/v1/equipment/queryByEqpId`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 更新备注 （气化课）
export const updateGasCheckItemRemark = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>(
    "post",
    `/operation/api/v1/gas/taskChecklistTemplate/update/content`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 创建任务 （气化课）
export const submitGasOrder = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/gas/cylinderTask/create`, { data }, { headers: { noLoading: true } }, cb);

// 创建草稿工单 （气化课）
export const saveGasDraftOrder = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/cylinderReplaceTask/saveDraft`, { data }, { headers: { noLoading: true } }, cb);

// 保存工单执行结果 （气化课）
export const saveGasOrderExecute = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/gas/cylinderTask/saveExecution`, { data }, { headers: { noLoading: true } }, cb);

// 提交工单执行结果 （气化课）
export const submitGasOrderExecute = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/gas/cylinderTask/submitExecution`, { data }, { headers: { noLoading: true } }, cb);

// 查询checklist模板内容 （气化课）
export const queryGasChecklist = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>(
    "post",
    `/operation/api/v1/gas/taskChecklistTemplate/queryTemplateContent`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
// 查询过滤器耗材列表 （气化课）
export const queryFilterList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/operation/consumable/listAll`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
// 查询过滤器耗材列表 （气化课）
export const queryFilterListPage = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/operation/consumable/listPage`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
//获取压差
export const queryLastScadaValue = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/data/api/v1/dataQuery/queryLastScadaValue`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
// 获取过滤器点位位号信息 （气化课）
export const queryFilterPointNum = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/digitaltwins/api/v1/equipmentAttribute/queryByEquipmentId`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
export const queryList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/digitaltwins/api/v1/equipmentAttribute/queryList`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
// 根据多个设备id和多个属性标识id获取属性
export const queryListByEqpIdAndIdentify = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/digitaltwins/api/v1/equipmentAttribute/queryListByEqpIdAndIdentify`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 获取压差曲线 （气化课）
export const queryPointNumChart = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/spcIndicator/querySpcAnalysis`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
//更新Spec （气化课）
export const updateExtra = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/operation/consumable/updateExtra`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
//查字典（气化课）
export const queryNameByTypeCodeAndValue = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/account/api/v1/publish/dictItem/queryNameByTypeCodeAndValue`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

//获取厂区和科室（气化课）
export const queryListByTypeCode = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/account/api/v1/publish/dictItem/queryListByTypeCode`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
//获取系统（气化课）
export const querySystemModelCondition = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/digitaltwins/api/v1/systemCategory/querySystemModelCondition`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
//获取设备（气化课）
export const queryEqpList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/digitaltwins/api/v1/publish/equipment/queryEqpList`,
    { data },
    { headers: { noLoading: true } },
    cb
  );
//查询所有备件信息(耗材)（气化课）
export const queryListPage = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/digitaltwins/api/v1/sparePart/queryListPage`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

//查询所有备件信息(耗材)水科
export const queryListPagesparePartNew = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/digitaltwins/api/v1/sparePartNew/queryListPage`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

//查询水科耗材名称
export const listInstalledFiltersWATER = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/operation/consumable/listInstalledFilters/WATER`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

//查询气化科耗材名称
export const listInstalledFiltersGAS = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/operation/consumable/listInstalledFilters/GAS`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

//查询水科设备
export const consumablelistInstalledDevices = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/operation/consumable/listInstalledDevices`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 查询工单详情 （气化课）
export const queryGasOrderDetail = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/cylinderTask/queryDetail`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 查询气瓶列表 （气化课）
export const queryGasBottleList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 删除气瓶 （气化课-在供）
export const deleteGasBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/delete`, { data }, { headers: { noLoading: true } }, cb);

// 创建气瓶 （气化课-在供）
export const createGasBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/create`, { data }, { headers: { noLoading: true } }, cb);

// 更新气瓶 （气化课-在供）
export const updateGasBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/update`, { data }, { headers: { noLoading: true } }, cb);

// 删除气瓶 （气化课-返库）
export const deleteGasReturnBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/deleteReturn`, { data }, { headers: { noLoading: true } }, cb);

// 创建气瓶 （气化课-返库）
export const createGasReturnBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/createReturn`, { data }, { headers: { noLoading: true } }, cb);

// 更新气瓶 （气化课-返库）
export const updateGasReturnBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/updateReturn`, { data }, { headers: { noLoading: true } }, cb);

// 删除气瓶 （气化课-废料）
export const deleteGasExpiredBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/deleteFei`, { data }, { headers: { noLoading: true } }, cb);

// 创建气瓶 （气化课-废料）
export const createGasExpiredBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/createFei`, { data }, { headers: { noLoading: true } }, cb);

// 更新气瓶 （气化课-废料）
export const updateGasExpiredBottle = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/steelCylinder/updateFei`, { data }, { headers: { noLoading: true } }, cb);

// 导入气瓶 （气化课）
export const importGasBottleData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>(
    "post",
    `/operation/api/v1/gas/steelCylinder/importData`,
    { data },
    { headers: { noLoading: true, "Content-Type": "multipart/form-data" } },
    cb
  );

// 查询关联单据 （气瓶台账管理） （气化课）
export const getGasBottleOrderOptions = (params?: any, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>(
    "get",
    `/operation/api/v1/gas/steelCylinder/task/list`,
    { params },
    { headers: { noLoading: false } },
    cb
  );

// 查询气瓶详情 （气化课）
export const queryGasBottleDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/steelCylinder/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 查询气瓶列表(气瓶信息) （气化课）
export const queryGasBottleInfoList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/gasMaterialMapping/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 导入气瓶(气瓶信息) （气化课）
export const importGasBottleInfoData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>(
    "post",
    `/operation/api/v1/gas/gasMaterialMapping/importData`,
    { data },
    { headers: { noLoading: true, "Content-Type": "multipart/form-data" } },
    cb
  );

// 创建气瓶(气瓶信息) （气化课）
export const createGasBottleInfo = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/gasMaterialMapping/create`, { data }, { headers: { noLoading: true } }, cb);

// 更新气瓶(气瓶信息) （气化课）
export const updateGasBottleInfo = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/gasMaterialMapping/update`, { data }, { headers: { noLoading: true } }, cb);

// 删除气瓶(气瓶信息) （气化课）
export const deleteGasBottleInfo = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/gasMaterialMapping/delete`, { data }, { headers: { noLoading: true } }, cb);

// 查询气瓶详情(气瓶信息) （气化课）
export const queryGasBottleInfoDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/gasMaterialMapping/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 查询列表 （供应提醒） （气化课）
export const querySupplyReminderList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/supplyReminder/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 忽略 （供应提醒） （气化课）
export const ignoreSupplyReminder = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/supplyReminder/ignore`, { data }, { headers: { noLoading: true } }, cb);

// 供应提醒-开单 （供应提醒） （气化课）
export const createSupplyReminderOrder = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/supplyReminder/createTask`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 供应提醒-批量开单 （供应提醒） （气化课）
export const batchCreateSupplyReminderOrder = (data?: any, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/supplyReminder/createTaskBatch`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 查询详情 （供应提醒） （气化课）
// 暂时不用（2024-07-01） 产品需求 详情的交互是跳转到 SCADA
export const querySupplyReminderDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/supplyReminder/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 查询sop列表 (sop) （气化课）
export const querySopList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/taskChecklistTemplate/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 创建sop (sop) （气化课）
export const createSop = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>(
    "post",
    `/operation/api/v1/gas/taskChecklistTemplate/create`,
    { data },
    { headers: { noLoading: true, "Content-Type": "multipart/form-data" } },
    cb
  );

// 更新sop (sop) （气化课）
export const updateSop = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/taskChecklistTemplate/update`, { data }, { headers: { noLoading: true } }, cb);

// 删除sop (sop) （气化课）
export const deleteSop = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/taskChecklistTemplate/delete`, { data }, { headers: { noLoading: true } }, cb);

// 查询sop详情 (sop) （气化课）
export const querySopDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/taskChecklistTemplate/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 查询更换工单列表 （酸桶） （气化课）
export const queryAcidDrumOrderList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bucketTask/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 创建工单 （酸桶） （气化课）
export const createAcidDrumOrder = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bucketTask/create`, { data }, { headers: { noLoading: true } }, cb);

// 查询工单详情 （酸桶） （气化课）
export const queryAcidDrumOrderDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/bucketTask/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 保存执行结果 （酸桶） （气化课）
export const saveAcidDrumExecution = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bucketTask/saveExecution`, { data }, { headers: { noLoading: true } }, cb);

// 提交执行结果 （酸桶） （气化课）
export const submitAcidDrumExecution = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bucketTask/submitExecution`, { data }, { headers: { noLoading: true } }, cb);

// 查询列表 （酸桶-台账） （气化课）
export const queryAcidDrumBucketList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bucket/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 创建 （酸桶-台账） （气化课）
export const createAcidDrumBucket = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bucket/create`, { data }, { headers: { noLoading: true } }, cb);

// 更新 （酸桶-台账） （气化课）
export const updateAcidDrumBucket = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bucket/update`, { data }, { headers: { noLoading: true } }, cb);

// 删除 （酸桶-台账） （气化课）
export const deleteAcidDrumBucket = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/bucket/delete`, { data }, { headers: { noLoading: true } }, cb);

// 查询详情 （酸桶-台账） （气化课）
export const queryAcidDrumBucket = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/bucket/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 导入酸桶台账 （酸桶-台账） （气化课）
export const importAcidDrumBucketData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>(
    "post",
    `/operation/api/v1/gas/bucket/importData`,
    { data },
    { headers: { noLoading: true, "Content-Type": "multipart/form-data" } },
    cb
  );

// 查询列表 （充装管理） （气化课）
export const queryFillingManageList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/tankTruckFilling/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 创建 （充装管理） （气化课）
export const createFillingManage = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/tankTruckFilling/create`, { data }, { headers: { noLoading: true } }, cb);

// 更新 （充装管理） （气化课）
export const updateFillingManage = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/tankTruckFilling/update`, { data }, { headers: { noLoading: true } }, cb);

// 删除 （充装管理） （气化课）
export const deleteFillingManage = (id?: string | number, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/tankTruckFilling/delete`, { data: { id } }, { headers: { noLoading: true } }, cb);

// 查询详情 （充装管理） （气化课）
export const queryFillingManageDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/tankTruckFilling/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 导入酸桶台账 （充装管理） （气化课）
export const importFillingManageData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>(
    "post",
    `/operation/api/v1/gas/tankTruckFilling/importData`,
    { data },
    { headers: { noLoading: true, "Content-Type": "multipart/form-data" } },
    cb
  );

// 查询更换工单列表 （槽车充装） （气化课）
export const queryFillingWagonOrderList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/tankTask/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 创建工单 （槽车充装） （气化课）
export const createFillingWagonOrder = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/tankTask/create`, { data }, { headers: { noLoading: true } }, cb);

// 查询工单详情 （槽车充装） （气化课）
export const queryFillingWagonOrderDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/tankTask/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 保存执行结果 （槽车充装） （气化课）
export const saveFillingWagonExecution = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/tankTask/saveExecution`, { data }, { headers: { noLoading: true } }, cb);

// 槽车充装载送物质下拉 （槽车充装） （气化课）
export const getFillingWagonMaterialOptions = (params?: any, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<any>>>(
    "get",
    `/operation/api/v1/gas/tankTruckFilling/status/list`,
    { params },
    { headers: { noLoading: false } },
    cb
  );

// 提交执行结果 （槽车充装） （气化课）
export const submitFillingWagonExecution = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/tankTask/submitExecution`, { data }, { headers: { noLoading: true } }, cb);

// 查询列表 （侦测器-台账） （气化课）
export const queryDetectorLedgerList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/gas/detector/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 查询读值曲线 （侦测器-台账） （气化课）
export const queryDetectorLedgerCurve = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/detector/queryReadValue`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 创建 （侦测器-台账） （气化课）
export const createDetectorLedger = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/detector/create`, { data }, { headers: { noLoading: true } }, cb);

// 批量更新 （侦测器-台账） （气化课）
export const batchUpdateDetectorLedger = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/gas/detector/batchUpdate`, { data }, { headers: { noLoading: true } }, cb);

// 单个更新 （侦测器-台账） （气化课）
export const updateDetectorLedger = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/gas/detector/update`, { data }, { headers: { noLoading: true } }, cb);

// 设备位置-下拉列表 （侦测器-台账） （气化课）
export const queryFacPositionTree = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/gas/facPositionTree/queryTree`, { data }, { headers: { noLoading: true } }, cb);

// 删除 （侦测器-台账） （气化课）
export const deleteDetectorLedger = (id?: string | number, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/detector/delete`, { data: { id } }, { headers: { noLoading: true } }, cb);

// 侦测器状态下拉框 （侦测器-台账） （气化课）
export const getDetectorLedgerStatusOptions = (params?: string | null, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/gas/detector/status/select`,
    { params },
    { headers: { noLoading: false } },
    cb
  );

// 侦测器气体类型下拉框 （侦测器-台账） （气化课）
export const getDetectorLedgerGasNameOptions = (params?: string | null, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/gas/detector/gasName/select`,
    { params },
    { headers: { noLoading: false } },
    cb
  );

// 查询列表 （侦测器-隔离） （气化课）
export const queryDetectorIsolateList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/detectorTask/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 侦测器工单-撤回 （侦测器-隔离） （气化课）
export const revokeTaskDetectorIsolate = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault>("post", `/operation/api/v1/gas/detectorTask/revokeTask`, { data }, { headers: { noLoading: true } }, cb);

// 创建工单 （侦测器-隔离） （气化课）
export const createDetectorIsolate = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/detectorTask/create`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 侦测器工单-查询提醒内容 （侦测器-隔离） （气化课）
export const queryReminderContent = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/detectorTask/queryReminderContent`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 查询详情 （侦测器-隔离） （气化课）
export const queryDetectorIsolateDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/detectorTask/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 侦测器工单-隔离-解隔离执行 （侦测器-隔离） （气化课）
export const executeDetectorIsolate = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/detectorTask/executeTask`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 侦测器工单-隔离-解隔离确认 （侦测器-隔离） （气化课）
export const confirmDetectorIsolate = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/detectorTask/confirmTask`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 侦测器工单-退回 （侦测器-隔离） （气化课）
export const returnDetectorIsolate = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/detectorTask/returnTask`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 侦测器工单-解隔离通知 （侦测器-隔离） （气化课）
export const noticeReDetectorIsolate = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/detectorTask/disisolationNotify`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 综合看板-大宗气耗量统计接口 （气化课）
export const queryBulkGasConsumptionStat = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/bulkGas/queryBulkGasConsumptionStat`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 综合看板-化学品耗量统计 （气化课）
export const queryConsumptionAnalysis = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<TableItem>>>(
    "post",
    `/operation/api/v1/gas/chemical/queryConsumptionAnalysis`,
    { data },
    { headers: { noLoading: true } },
    cb
  );

// 查询特气-化学品-大宗气气体名称 （气化课）
export const queryGasNameList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<any>>("post", `/operation/api/v1/gas/queryGasNameList`, { data }, { headers: { noLoading: true } }, cb);

// 主进状态 （电课）
export const queryMainStatus = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Array<TableItem>>>("post", `/operation/api/v1/ele/main/in`, { data }, { headers: { noLoading: true } }, cb);

// 主进电流电压弹框 （电课）
export const getMainCurrentVoltage = (mainKey?: string | null, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/ele/spec/currentVoltage`,
    { params: { mainKey } },
    { headers: { noLoading: false } },
    cb
  );

// 主进电流弹框 （电课）
export const getMainCurrent = (mainKey?: string | null) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/ele/spec/current`,
    { params: { mainKey } },
    { headers: { noLoading: false } }
  );

// 主进电压弹框 （电课）
export const getMainVoltage = (mainKey?: string | null) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/ele/spec/voltage`,
    { params: { mainKey } },
    { headers: { noLoading: false } }
  );

// 主进频率弹框 （电课）
export const getMainFrequency = (mainKey?: string | null, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/ele/spec/frequency`,
    { params: { mainKey } },
    { headers: { noLoading: false } },
    cb
  );

// 主进总功率弹框 （电课）
export const getMainPower = (mainKey?: string | null, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/ele/spec/power`,
    { params: { mainKey } },
    { headers: { noLoading: false } },
    cb
  );

// 电课运维|看板-保养任务 （电课）
export const querymaintenanceTask = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/pm/list`, { data }, { headers: { noLoading: true } }, cb);

// 用电统计 （电课）
export const queryTotalElectricityStatistics = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/ele/ele/used/statistics`, { data }, { headers: { noLoading: true } }, cb);

// 总用电量弹窗 （电科）
export const queryTotalElectricitySPC = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("get", `/operation/api/v1/ele/spec/statistics`, { params: data }, { headers: { noLoading: true } }, cb);

// 负载率列表 （电课）
export const queryloadRateList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/ele/loadRate`, { data }, { headers: { noLoading: true } }, cb);

// 负载率弹框 （电课）
export const getLoadRateDetail = (mainKey?: string | null) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/ele/spec/loadRate`,
    { params: { mainKey } },
    { headers: { noLoading: false } }
  );

// 负载率弹框 （电课）
export const getLoadRateDetailV2 = (mainKey?: string | null) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/ele/spec/loadRate/current`,
    { params: { mainKey } },
    { headers: { noLoading: false } }
  );
// 查询安全运行天数 （电课）
export const getSafeDays = (id?: string | number | null, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "get",
    `/operation/api/v1/ele/get/safe`,
    { params: { id } },
    { headers: { noLoading: false } },
    cb
  );

// 更新安全运行天数 （电课）
export const updateSafeDays = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/ele/update/safe`, { data }, { headers: { noLoading: true } }, cb);

// 交接班记录查询 （电课）
export const getHandoverRecord = (className?: string | number | null, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>(
    "get",
    `/operation/api/v1/handover/list/handoverRecord`,
    { params: { className } },
    { headers: { noLoading: false } },
    cb
  );

// 查询指标信息 （气化课 拓扑图 特气 氯气）
export const queryPointInfoByPid = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/pid/querySpecInfo`, { data }, { headers: { noLoading: true } }, cb);

// 查询指标值曲线 （气化课 拓扑图 特气 氯气）
export const queryPointCurveByPoint = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/pid/querySpecValueCurve`, { data }, { headers: { noLoading: true } }, cb);

// 任务看板 - 统计任务状态数量
export const queryTaskCount = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/account/api/v1/publish/taskboard/queryTaskStatus`, { data }, { headers: { noLoading: true } }, cb);

// 任务看板 - 查询任务列表
export const queryTaskList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/account/api/v1/publish/taskboard/queryTaskList`, { data }, { headers: { noLoading: true } }, cb);

// 酸桶设备-可视化分页查询 （气化课 设备状态可视化）
export const queryGasAcidDrumEquipList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/visualization/page/bucket`, { data }, { headers: { noLoading: true } }, cb);

// 特气设备-可视化分页查询 （气化课 设备状态可视化）
export const queryGasSpecialGasEquipList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/visualization/page/specialty`, { data }, { headers: { noLoading: true } }, cb);

// 化学品供应设备-可视化分页查询 （气化课 设备状态可视化）
export const queryGasChemicalEquipList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/visualization/page/chemical`, { data }, { headers: { noLoading: true } }, cb);

// 特气下拉框 （气化课 设备状态可视化）
export const getSpecialGasEquipStatus = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("get", `/operation/api/v1/visualization/specialty/select`, { params: data }, { headers: { noLoading: true } }, cb);

// 酸桶下拉框 （气化课 设备状态可视化）
export const getAcidDrumEquipStatus = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("get", `/operation/api/v1/visualization/bucket/select`, { params: data }, { headers: { noLoading: true } }, cb);

// 查找抄表数据-按天查询 （气化课 设备状态可视化）
export const queryDailyData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/sharing/api/v1/meterReadingDetail/day/list`, { data }, { headers: { noLoading: true } }, cb);

// 操作日志查询接口 （气化课）
export const queryOperationLogsData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/account/api/v1/sys/operlog/list`, { data }, { headers: { noLoading: true } }, cb);

// 查询废弃物列表 （气化课 废弃物管理）
export const queryGasWasteList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/gasWaste/queryList`, { data }, { headers: { noLoading: true } }, cb);

// 导入危废台账 （气化课 废弃物管理）
export const importGasWasteData = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>(
    "post",
    `/operation/api/v1/gas/gasWaste/importData`,
    { data },
    { headers: { noLoading: true, "Content-Type": "multipart/form-data" } },
    cb
  );

// 删除废弃物 （气化课 废弃物管理）
export const deleteGasWaste = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/gasWaste/delete`, { data }, { headers: { noLoading: true } }, cb);

// 查询废弃物详情 （气化课 废弃物管理）
export const queryGasWasteDetail = (id?: string | number, cb?: (err: any) => any) =>
  http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/gas/gasWaste/queryDetail`,
    { data: { id } },
    { headers: { noLoading: true } },
    cb
  );

// 创建废弃物台账 （气化课 废弃物管理）
export const createGasWaste = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/gasWaste/create`, { data }, { headers: { noLoading: true } }, cb);

// 创建废弃物台账 （气化课 废弃物管理）
export const updateGasWaste = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/gasWaste/update`, { data }, { headers: { noLoading: true } }, cb);

// 特气-点检-查询列表 （耗量统计） （气化课）
export const querySpecialtyConsumptionInspectionList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/gas/gasSpotCheckRecord/queryList/specialty`, { data }, { headers: { noLoading: true } }, cb);

// 大宗气-点检-查询列表 （耗量统计） （气化课）
export const queryBulkGasConsumptionInspectionList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/gas/gasSpotCheckRecord/queryList/bulkGas`, { data }, { headers: { noLoading: true } }, cb);

// 化学品-点检-查询列表 （耗量统计） （气化课）
export const queryChemicalConsumptionInspectionList = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/gas/gasSpotCheckRecord/queryList/chemical`, { data }, { headers: { noLoading: true } }, cb);

// 新增点检记录创建 （耗量统计） （气化课）
export const createInspection = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/gas/gasSpotCheckRecord/create`, { data }, { headers: { noLoading: true } }, cb);

// 新增点检确认记录创建 （耗量统计） （气化课）
export const createInspectionConfirm = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<TableType>("post", `/operation/api/v1/gas/gasSpotCheckRecord/confirm/create`, { data }, { headers: { noLoading: true } }, cb);

//查询机械科耗材名称
export const listInstalledFiltersMachine = (data?: object) => {
  return http.request<AxiosResultDefault<Record<string, any>>>(
    "post",
    `/operation/api/v1/operation/consumable/listInstalledFilters/MACHINE`,
    { data },
    { headers: { noLoading: true } }
  );
};
//查询机械科耗材列表
export const getListHistoryGrouping = (data?: object) => {
  return http.request<AxiosResultDefault<Record<string, any>>>("post", `/operation/api/v1/operation/consumable/listHistoryGrouping`, { data });
};

//按区域列出FFU耗材更换历史
export const getListFFUHistory = (data?: object) => {
  return http.request<AxiosResultDefault<Record<string, any>>>("post", `/operation/api/v1/operation/consumable/listFFUHistory`, { data });
};
// 查询化学品列表 （耗量统计） （气化课）
export const queryAllChemicalName = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/operation/api/v1/gas/chemical/queryAllChemicalName`, { data }, { headers: { noLoading: true } }, cb);

// 指标-根据设备编码和标识符list获取指标
export const queryByEqpIdAndIdentify = (data?: object | undefined, cb?: (err: any) => any) =>
  http.request<Array<TableItem>>("post", `/account/api/v1/publish/measure/queryByEqpIdAndIdentify`, { data }, { headers: { noLoading: true } }, cb);
